package com.longlong.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("admin_menu")
public class AdminMenu {

    private Integer id;

    //菜单路径
    private String path;


    //菜单图标
    private String icon;

    //菜单名
    private String title;

    //菜单描述
    private String component;

    //菜单父id
    private Integer parentId;

    //子菜单
    private List<AdminMenu> children;




    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
